home *** CD-ROM | disk | FTP | other *** search
- CP Copy files (MS-DOS) Version 5.3
-
- cp [-!abdfhiopqsv7] source [...] [target]
-
- The sources may be single files, file specifications containing
- wildcards, or multiple file specifications separated by commas.
- File specifications may include disk drives and/or directory
- names.
-
- If multiple files are being copied, the target must be a disk
- drive and/or a directory name. If only one file is being copied,
- the target may also be the name of another file. If the target
- is omitted (syntactically only possible with one source
- argument), the current directory is assumed. If the target name
- ends with a backslash and no such directory exists, it will be
- created.
-
- If a source argument contains multiple file specifications
- separated by commas, disk drive or directory names encountered
- are passed along to subsequent file specifications until
- reassigned. Thus,
-
- cp a:\src\*.c,*.obj,\exe\*.* another.dat b:
-
- is the same as
-
- cp a:\src\*.c a:\src\*.obj a:\exe\*.* another.dat b:
-
- A list of file specifications separated by commas is
- syntactically a single source argument, thus
-
- cp a:bob,carol,ted,alice
-
- will copy four files from drive A to the current directory, since
- no target has been specified.
-
- If a target file exists, CP normally asks for verification before
- overwriting.
-
- If there is not enough room on the target disk for the copy, the
- program pauses while the user changes disks; the copy then
- proceeds.
-
- If the target is specified as
-
- 2:
-
- drive A will be used until full. Drive B is then used; when B
- fills, the program pauses while you change disks and then starts
- over with A. This is useful for backups.
-
-
- Command Line Options
-
- -a (attributes)
-
- Pass on the attributes (read-only, hidden, etc.) of the source
- file to the target file. Normally the target file is created
- read/write, non-hidden, non-system, with the archive bit set
- (e.g. not backed up).
-
- -b (backup)
-
- Used to backup hard disk onto floppies. -b implies -pf (see
- below). If no target is specified, 2: is assumed.
-
- On the DEC Rainbow only, CP will delete all files and sub-
- directories on each new floppy inserted. This allows you to make
- backups onto the floppies without having to erase them manually
- beforehand. For this reason, CP requests confirmation if -b is
- specified before beginning the backup.
-
- -d (delete after copy)
-
- Delete the source file (without requesting confirmation) if the
- copy was successful.
-
- -f (flag)
-
- Clear the archive flag in each source file after it has been
- successfully copied indicating the file has been backed up.
-
- -h (hidden)
-
- Ignore files with the Hidden attribute.
-
- -i (input)
-
- Take the list of files to copy from the standard input rather
- than the command line. Thus with -i the format of CP is
-
- cp -i [-adqsv!] [target]
-
- This is useful when using CP as a filter. e.g
-
- ls -fm | cp -i a
-
- copies files in order from smallest to largest. This insures
- that the most files will be copied to a: before it fills.
-
- -n (no replace)
-
- Don't overwrite existing files; only do copies which create new
- files. No comment is made if a copy is skipped due to an already
- existing file.
-
- -p (path)
-
- The target must be a drive letter followed by a colon. If a
- directory (path) specification is present for a source file, it
- will be copied to a path of that name on the target drive.
- Directories are created as needed.
-
- The command
-
- cp -p \exe\*.* \src\*.* a
-
- will copy files to directories a:\exe and a:\src.
-
- ls -rf e:\ | cp -ip 2:
-
- will backup up all of drive E onto floppies, using drives A and
- B
-
- -q (quiet)
-
- Supress informational copy messages.
-
- -s (system)
-
- Ignore files with the System attribute.
-
- -v (verify)
-
- Request user confirmation before copying. At each file prompt
- the user answers either Y (do the copy), ! (do the copy and don't
- ask for confirmation on future files), or N (don't copy this
- file). Any other answer is the same as N. If -f was specified,
- the archive bit is turned off regardless of the answer unless CP
- is aborted with ^C
-
- -! (hammer!)
-
- Supress the verification which is normally requested (even
- without -v) before overwriting an existing file.
-
- -7 (7-bit)
-
- Clear the high-order bit of each byte in the target file. Useful
- for removing parity bits after serial transfer or for stripping
- word-processor inserted flags.
-
- Options may be combined as in
-
- cp -q! ...
-
- The CP! command is a shorthand for cp -!. Usage is
-
- cp! [-adhinpqsv7] file [...] [target]
-
-
- Copyright (c) 1985-89 by Bryan Higgins. All rights reserved.
- Permission is hereby given to reproduce and distribute this
- program without restriction for non-commercial use.
-
- The author may be reached/rewarded at
-
- 1802 Channing Way
- Berkeley, CA 94703-1725
-
- Please specify CP version 5.3 when referring to this program.
-
- One of the Kramden Utilities.
-
- ----------------end-of-author's-documentation---------------
-
- Software Library Information:
-
- This disk copy provided as a service of
-
- The Public (Software) Library
-
- We are not the authors of this program, nor are we associated
- with the author in any way other than as a distributor of the
- program in accordance with the author's terms of distribution.
-
- Please direct shareware payments and specific questions about
- this program to the author of the program, whose name appears
- elsewhere in this documentation. If you have trouble getting
- in touch with the author, we will do whatever we can to help
- you with your questions. All programs have been tested and do
- run. To report problems, please use the form that is in the
- file PROBLEM.DOC on many of our disks or in other written for-
- mat with screen printouts, if possible. The P(s)L cannot de-
- bug programs over the telephone.
-
- Disks in the P(s)L are updated monthly, so if you did not get
- this disk directly from the P(s)L, you should be aware that
- the files in this set may no longer be the current versions.
-
- For a copy of the latest monthly software library newsletter
- and a list of the 2,000+ disks in the library, call or write
-
- The Public (Software) Library
- P.O.Box 35705 - F
- Houston, TX 77235-5705
- (713) 665-7017
-